package io.nutz.nutzsite.module.ctask.models;

import io.nutz.nutzsite.common.base.BaseModel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import org.nutz.dao.entity.annotation.*;
import java.io.Serializable;
						
/**
 * 学期教学任务表 ctask
 * 
 * @author lrw
 * @date 2020-02-16
 */
@Table("ctask")
public class Ctask extends BaseModel implements Serializable {
	private static final long serialVersionUID = 1L;
	
			@Name
	@Prev(els = {@EL("uuid()")})
		@Column("term")
	@Comment("学段，如2018-2019-2")
	@ColDefine(type = ColType.VARCHAR, width = 64)
	
	private String term;

			/** 课程号 */
	@Column("cid")
	@Comment("课程号")
	private String cid;

			/** 课程名 */
	@Column("cname")
	@Comment("课程名")
	private String cname;

			/** 教师工号 */
	@Column("uid")
	@Comment("教师工号")
	private String uid;

			/** 教师姓名 */
	@Column("xm")
	@Comment("教师姓名")
	private String xm;

			/** 授课班级，如：软工B20141 */
	@Column("bj")
	@Comment("授课班级，如：软工B20141")
	private String bj;

	
	public void setTerm(String term) 
	{
		this.term = term;
	}

	public String getTerm() 
	{
		return term;
	}

	public void setCid(String cid) 
	{
		this.cid = cid;
	}

	public String getCid() 
	{
		return cid;
	}

	public void setCname(String cname) 
	{
		this.cname = cname;
	}

	public String getCname() 
	{
		return cname;
	}

	public void setUid(String uid) 
	{
		this.uid = uid;
	}

	public String getUid() 
	{
		return uid;
	}

	public void setXm(String xm) 
	{
		this.xm = xm;
	}

	public String getXm() 
	{
		return xm;
	}

	public void setBj(String bj) 
	{
		this.bj = bj;
	}

	public String getBj() 
	{
		return bj;
	}

	@Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("term", getTerm())
            .append("cid", getCid())
            .append("cname", getCname())
            .append("uid", getUid())
            .append("xm", getXm())
            .append("bj", getBj())
            .toString();
    }
}
